<?php

namespace LowCode\Traits\Props;

use LowCode\Support\JsExp;

/**
 * 设置副标题
 */
trait HasSubTitle
{
    /**
     * 设置副标题
     * @param string|JsExp $subtitle
     * @return $this
     */
    public function subtitle(string|JsExp $subtitle): static
    {
        return $this->prop("subtitle",$subtitle);
    }
}
